﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure
{
    public class Book
    {
        public string Title { get; set; }
        public int ID { get; set; }
        public string ISBN { get; set; }
        public Person Author { get; set; }
        public string Description { get; set; }
        public DateTime Published { get; set; }

        public override string ToString()
        {
            return string.Format("Title: {0}\nID: {1}\nISBN: {2}\nDescription: {3}\nPublished: {4}\nAuthor: {5}",
                Title,
                ID.ToString(),
                ISBN,
                Description,
                Published.ToString("yyyy-MM-dd"),
                Author.ToString());
        }
    }
}
